<template>
  <div>
    <div class="box">
      <div>
            <el-button type="text" :class="index==1?'active':''" @click="shou"><i class="el-icon-s-home"></i><br/>首页</el-button>
        </div>
        <div>
            <el-button type="text" :class="index==3?'active':''" @click="myuser"><i class="el-icon-user-solid"></i><br/>我的</el-button>
        </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "BottomBar",
    props: {
      index: Number
    },
    methods:{
        shou(){
            this.$router.push('/about')
        },
        myuser(){
            this.$router.push('/user')
        }
    }
  }
  </script>

<style scoped>
.box {
  width: 90%;
  height: 50px;
  line-height: 50px;
  position: fixed;
  bottom: 0;
  background-color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 14px;
  color: #000000;
  box-shadow: 0 -3px 10px #CCCCCC;
}

.active {
  font-weight: bold;
}
</style>
